//
//  RCDBaseCollectionView.m
//  MyFamilyNet
//
//  Created by 任辰东 on 2018/7/20.
//  Copyright © 2018年 任辰东. All rights reserved.
//

#import "RCDBaseCollectionView.h"

@implementation RCDBaseCollectionView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout
{
    self = [super initWithFrame:frame collectionViewLayout:layout];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor clearColor];
        self.pageNum = 1;
        self.pageLimit = 10;
    }
    return self;
    
}

- (NSMutableArray *)dataSourceArr {
    if (!_dataSourceArr) {
        _dataSourceArr = [[NSMutableArray alloc] initWithCapacity:1];
    }
    return _dataSourceArr;
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [self endEditing:YES];
    [super touchesBegan:touches withEvent:event];
}
@end
